import java.util.Scanner;
public class zfpd{
    public static void main(String[] argv){
         Scanner r=new Scanner(System.in);
         char c=r.next().charAt(0);
         if(c>='A'&&c<='Z')
              System.out.println("DXZm");
         else if(c>='a'&&c<='z')
              System.out.println("xxzm");
         else if(c>='0'&&c<='9')
              System.out.println("sz");
         else
              System.out.println("qt");
    }
}